package com.kob.backend.controller.shop;

import com.kob.backend.service.shop.ShopRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ShopRegisterController {
    @Autowired
    private ShopRegisterService shopRegisterService;
    @PostMapping("/register/shop/")
    public Map<String, String> shopregister(@RequestParam Map<String,String>map){
        String name=map.get("shopname");
        String address=map.get("shopaddress");
        String phone=map.get("shopphone");
        return shopRegisterService.shopregister(name,address,phone);
    }
}
